<?php


namespace app\store\controller;




use library\Controller;

class Purchase extends Controller
{
    public $table = "StorePurchase";

    public function index()
    {
        $this->title = "订货单";
        $this->_query($this->table)->order('createtime desc')->page();
    }

    public function add()
    {
        $this->title = '生成采购单';
        return $this->_form($this->table, 'form');
    }
}